package ru.amse.tsyganov.jumleditor.model.common;

public abstract class State extends ModelElement {
	
	private final StateVertex stateVertex = new StateVertex(this);
	
	private GraphModel graphModel;
	
	private String name = "";
	
	public final StateVertex getStateVertex() {
		return stateVertex;
	}

	public final GraphModel getActivityGraph() {
		return graphModel;
	}

	public void setActivityGraph(GraphModel graphModel) {
		if (graphModel == null) {
			throw new IllegalArgumentException();
		}
		this.graphModel = graphModel;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
